package com.ce.pms.occupation.model;

// Generated 2008-12-24 13:41:51 by Hibernate Tools 3.2.0.b9

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ce.pms.system.occupation.model.ThingHandoverCongfigDO;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:物品移交项目 关联数据表:OM_THING_HANDOVER_ITEM
 *
 * @author yandawei
 * @CreateDate:2008-12-24
 */
@Entity
@Table(name = "OM_THING_HANDOVER_ITEM")
public class ThingHandoverItemDO implements IDomainObject {

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue
	@Column(name = "HANDOVER_ITEM_ID", unique = true, nullable = false)
	private Long keyword;

	/**
	 * 移交物品设置
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "THING_HANDOVER_CONGFIG_ID", nullable = false)
	private ThingHandoverCongfigDO thingHandoverCongfig;

	/**
	 * 物品移交
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "THING_HANDOVER_ID", nullable = false)
	private ThingHandoverDO thingHandover;

	/**
	 * 房号
	 */
	@Column(name = "HOUSE_NUMBER", nullable = false, length = 36)
	private String houseNumber;

	/**
	 * 移交数量
	 */
	@Column(name = "AMOUNT")
	private Short amount;

	public ThingHandoverItemDO() {
	}

	public ThingHandoverItemDO(Long keyword) {
		this.keyword = keyword;
	}

	public String getHouseNumber() {
		return houseNumber;
	}

	public void setHouseNumber(String houseNumber) {
		this.houseNumber = houseNumber;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public ThingHandoverDO getThingHandover() {
		return thingHandover;
	}

	public void setThingHandover(ThingHandoverDO thingHandover) {
		this.thingHandover = thingHandover;
	}

	public ThingHandoverCongfigDO getThingHandoverCongfig() {
		return thingHandoverCongfig;
	}

	public void setThingHandoverCongfig(
			ThingHandoverCongfigDO thingHandoverCongfig) {
		this.thingHandoverCongfig = thingHandoverCongfig;
	}

	public Short getAmount() {
		return this.amount;
	}

	public void setAmount(Short amount) {
		this.amount = amount;
	}

}
